import req from '@/services/http'

import { USERLIST,ADDUSER,UPDATEUSER,DELUSER} from '@/config/user'

const model = {
    //用户列表
    userList(){
        return req.get(USERLIST)
    },
    //添加用户
    addUser(obj){
        return req.post(ADDUSER,obj)
    },
    //修改用户
    updateUser(obj){
        return req.post(UPDATEUSER,obj)
    },
    //删除用户
    delUser(obj){
        return req.post(DELUSER,obj)
    }   

}
export default model